import request from '@/utils/request'
var url="/enovia";
// 查询接口数据
export function getDataList(route,query) {
  return request({
    url: url+route,
    method: 'get',
    params: query
  })
}
// 查询配置
export function getConfigInfo(query) {
  return request({
    url: '/pms/pageConfig/getConfigData',
    method: 'get',
    params: query
  })
}
// 查询详细
export function getData(route,id) {
  return request({
    url: route+'/' + id,
    method: 'get'
  })
}

// 新增
export function addData(route,data) {
  return request({
    url: route+'',
    method: 'post',
    data: data
  })
}

// 修改
export function updateData(route,data) {
  return request({
    url: route+'',
    method: 'put',
    data: data
  })
}

// 删除
export function delData(route,id) {
  return request({
    url: route+'/' + id,
    method: 'delete'
  })
}

// 导出
export function exportData(route,query) {
  return request({
    url: route+'/export',
    method: 'get',
    params: query
  })
}

